package Thread.TurtleRabbit;

/**
 * @author: lqh
 * @description: 乌龟
 * @program: Demo
 * @create: 2018-04-13 11:23
 **/
public class Turtle extends Animal{
    @Override
    public void running() {
        len -= 0.1;
        System.out.println("乌龟距离终点还有"+len+"米");
        if (len<=0){
            System.out.println("乌龟赢了");
            calltoback.win();
        }
    }
}
